import 'package:flutter/material.dart';

Widget mySnackBar({required String content, required Function onPress}) {
  return Column(
    mainAxisAlignment: MainAxisAlignment.end,
    crossAxisAlignment: CrossAxisAlignment.end,
    children: [
      InkWell(
        child: const Padding(
          padding: EdgeInsets.only(left: 15, right: 15, top: 10),
          child: Icon(
            Icons.close_rounded,
            color: Colors.black87,
          ),
        ),
        onTap: () {
          onPress();
        },
      ),
      Container(
        padding: const EdgeInsets.only(bottom: 20, left: 20, right: 40),
        child: Center(
          child: Text(
            content,
            style: const TextStyle(color: Colors.black87),
          ),
        ),
      )
    ],
  );
}
